//
//  XJDBaseMethod.m
//  XJD
//
//  Created by Angela on 2017/8/26.
//  Copyright © 2017年 Angela. All rights reserved.
//

#import "XJDBaseMethod.h"

@implementation XJDBaseMethod
+(NSMutableAttributedString *)OneString:(NSString *)str1 str1Color:(UIColor *)str1Color str1FontSize:(CGFloat)str1FontSize{
    str1 = str1 ?: @"";
    NSMutableAttributedString *attributeLabeText = [[NSMutableAttributedString alloc] init];
    [attributeLabeText appendAttributedString:[[NSAttributedString alloc]initWithString:str1 attributes:@{NSFontAttributeName:[UIFont fontWithName:XJDFont size:str1FontSize], NSForegroundColorAttributeName:str1Color}]];
    return attributeLabeText;
}
+(NSMutableAttributedString *)OneString:(NSString *)str1 str1Color:(UIColor *)str1Color str1FontSize:(CGFloat)str1FontSize towString:(NSString *)towString towStringFontSize:(CGFloat)towStringFontSize towStringColor:(UIColor *)towStringColor{
    str1 = str1 ?: @"";
    towString = towString ?: @"";
    NSMutableAttributedString *attributeLabeText = [[NSMutableAttributedString alloc] init];
    [attributeLabeText appendAttributedString:[[NSAttributedString alloc]initWithString:str1 attributes:@{NSFontAttributeName:[UIFont fontWithName:XJDFont size:str1FontSize], NSForegroundColorAttributeName:str1Color}]];
    [attributeLabeText appendAttributedString:[[NSAttributedString alloc] initWithString:towString attributes:@{NSForegroundColorAttributeName:towStringColor, NSFontAttributeName: [UIFont fontWithName:XJDFont size:towStringFontSize]}]];
    return attributeLabeText;
}
+(NSMutableAttributedString *)OneStr:(NSString *)str1 str1Color:(UIColor *)str1Color str1FontSize:(CGFloat)str1FontSize towStr:(NSString *)towStr towStrFontSize:(CGFloat)towStrFontSize towStrColor:(UIColor *)towStrColor thirdStr:(NSString *)thirdStr thirdStrColor:(UIColor *)thirdStrColor thirdStrFontSize:(CGFloat)thirdStrFontSize{
    
    str1 = str1 ?: @"";
    towStr = towStr ?: @"";
    thirdStr=thirdStr?:@"";
    NSMutableAttributedString *attributeLabeText = [[NSMutableAttributedString alloc] init];
    [attributeLabeText appendAttributedString:[[NSAttributedString alloc]initWithString:str1 attributes:@{NSFontAttributeName:[UIFont fontWithName:XJDFont size:str1FontSize], NSForegroundColorAttributeName:str1Color}]];
    [attributeLabeText appendAttributedString:[[NSAttributedString alloc] initWithString:towStr attributes:@{NSForegroundColorAttributeName:towStrColor, NSFontAttributeName: [UIFont fontWithName:XJDFont size:towStrFontSize]}]];
     [attributeLabeText appendAttributedString:[[NSAttributedString alloc] initWithString:thirdStr attributes:@{NSForegroundColorAttributeName:thirdStrColor, NSFontAttributeName: [UIFont fontWithName:XJDFont size:thirdStrFontSize]}]];
    return attributeLabeText;
    
}
@end
